home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C++
/
Applications
/
nanoInstall 1.0
/
source
/
nanoInstall.cp
< prev
next >
Wrap
Text File
|
1996-07-05
|
579b
|
41 lines
#include "nanoInstall.h"
const unsigned char emptyPString[] = "\p";
void InitToolbox()
{
MaxApplZone();
MoreMasters();
InitGraf( &qd.thePort);
InitFonts();
InitWindows();
InitMenus();
FlushEvents( everyEvent, 0);
TEInit();
InitDialogs( 0L);
InitCursor();
}
void main()
{
InitToolbox();
Handle nameResource = Get1Resource( 'fNam', 128);
OSErr result = noErr;
if( nameResource == 0)
{
result = readThem();
} else {
ReleaseResource( nameResource);
result = writeThem();
}
if( result != noErr)
{
SysBeep( 9);
long ticks;
Delay( 20, &ticks);
}
}